package com.igeek.yygh.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.igeek.yygh.model.elders.Elders;
import com.igeek.yygh.result.Result;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author Guzhenghui
 * @since 2024/8/18
 */
public interface EldersMapper extends BaseMapper<Elders> {

//    String getLocation(Long id);
    @Select("select name,lalo from elders where id = #{id}")
    Map<String, Object> selectElderById(int id);


    @Select("select name,lalo from elders")
    List<Map<String, Object> > selectElder();
}
